#include <stdio.h>


int callatz(int number);


int main(int argc, char *argv[]) {
  int number;
  scanf("%d", &number);
  printf("%d", callatz(number));
}


int callatz(int number) {
  int count = 0;

  while (number != 1) {
    number = (number % 2 == 0 ? number / 2 : (number * 3 + 1) / 2);
    count++;
  }

  return count;
}
